/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package bl;

import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JPanel;
import main.Draw;

/**
 *
 * @author Alexander_Seiner
 */
public class GamePanal extends JPanel
{
    private Draw draw;
    
    public GamePanal(Draw draw) 
    {
        this.draw = draw;
    }

    @Override
    protected void paintComponent(Graphics g) 
    {
        super.paintComponent(g);
        Graphics2D g2d = (Graphics2D)g;
        
        draw.draw(g2d);
    }
    
    
}
